package cms.models {
  import org.restfulx.collections.ModelsCollection;
  import org.restfulx.models.RxModel;
  
  [Resource(name="households")]
  [Bindable]
  public class Household extends RxModel {
    public static const LABEL:String = "name";

    public var name:String = "";

    public var address:String = "";

    public var homePhone:String = "";

    public var email:String = "";

    public var anniversary:Date = new Date;

    [HasMany]
    public var persons:ModelsCollection;
    
    [HasMany]
    public var payments:ModelsCollection;
    
    public function Household() {
      super(LABEL);
    }
  }
}
